<?php
    class Product_Model extends CI_Model
    {
        var $table = "db_product";       
        function __construct()
        {
            parent::__construct();
        }
        function cate_get($id)
		{
			$this->db->where('id_product',$id);
			$q=$this->db->get($this->table);				
			return $q->row();
           
		} 
       

	}
	

    
?>    